#include <iostream>
#include <cmath>
#include <vector>
#include <array>
#include "graph.h"
using namespace std;



int main()
{
    cout<<"If you want to use an adjacency list, please enter 1; If you want to use an adjacency matrix, please enter 2;"<<endl;
    cout<<"Your choice is: ";
    int choice;
    cin>> choice;
    cout<<"Input the Number of Edge:";
    int n;
    cin>>n;
    cout<<"Input the Name of Vertex:";
    int a[n];
    for (int i=0; i<n; i++)
    {
        cin>>a[i];
    }
    int e;
    cout<<"Input the Number of Edge:";
    cin>>e;
    if(choice==1)
    {
        AMGraph<int> graphmatrix(a,n,e);
        graphmatrix.listVertexes();
        graphmatrix.listEdges();
        graphmatrix.Show();
    } 

    else if (choice==2)
    {
        ALGraph<int> graphlink(a, n, e);
        graphlink.listVertexes();
        graphlink.listEdges();
        graphlink.Show();
    }
    
    return 0;
}